import request from '@/utils/request'

// 新增腾讯云存储
export const createTencentContent = (data) => request({
  url: '/admin/tencent/content',
  method: 'post',
  data
})

// 删除腾讯云存储
export const deleteTencentContent = (data, configId) => request({
  url: `/admin/tencent/content?configId=${configId}`,
  method: 'delete',
  data
})

// 修改腾讯云存储
export const updateTencentContent = (data) => request({
  url: '/admin/tencent/content',
  method: 'put',
  data
})

// 分页查询腾讯云存储
export const pageQuery = (data) => request({
  url: '/admin/tencent/content/page',
  method: 'post',
  data
})

// 批量导出
export const exportTencentContent = (data) => request({
  url: '/admin/tencent/content/export',
  method: 'post',
  data,
  responseType: 'blob'
})

